/* Copyright (c) 2011 by crossmobile.org
 *
 * CrossMobile is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation, version 2.
 *
 * CrossMobile is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with CrossMobile; if not, write to the Free Software
 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
 */

package org.xmlvm.iphone;

public class MKUserLocation extends MKAnnotation {

    private CLLocation location;
    private boolean updating = true;
    private String title;
    private String subtitle;

    MKUserLocation() {
        this.location = new CLLocation(0, 0);
        title = "User location";
        subtitle = "";
    }

    void setLocation(CLLocation location) {
        this.location = location;
        updating = false;
    }

    public CLLocation getLocation() {
        return location;
    }

    public boolean isUpdating() {
        return updating;
    }

    public String getSubtitle() {
        return subtitle;
    }

    public void setSubtitle(String subtitle) {
        this.subtitle = subtitle;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    @Override
    public CLLocationCoordinate2D getCoordinate() {
        return location.getCoordinate();
    }
}
